﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F2D RID: 3885
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicGameDifficultyInfo : IMessage<RogueMagicGameDifficultyInfo>, IMessage, IEquatable<RogueMagicGameDifficultyInfo>, IDeepCloneable<RogueMagicGameDifficultyInfo>, IBufferMessage
	{
		// Token: 0x1700315C RID: 12636
		// (get) Token: 0x0600AE57 RID: 44631 RVA: 0x001D7A1D File Offset: 0x001D5C1D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicGameDifficultyInfo> Parser
		{
			get
			{
				return RogueMagicGameDifficultyInfo._parser;
			}
		}

		// Token: 0x1700315D RID: 12637
		// (get) Token: 0x0600AE58 RID: 44632 RVA: 0x001D7A24 File Offset: 0x001D5C24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicGameDifficultyInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700315E RID: 12638
		// (get) Token: 0x0600AE59 RID: 44633 RVA: 0x001D7A36 File Offset: 0x001D5C36
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicGameDifficultyInfo.Descriptor;
			}
		}

		// Token: 0x0600AE5A RID: 44634 RVA: 0x001D7A3D File Offset: 0x001D5C3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicGameDifficultyInfo()
		{
		}

		// Token: 0x0600AE5B RID: 44635 RVA: 0x001D7A50 File Offset: 0x001D5C50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicGameDifficultyInfo(RogueMagicGameDifficultyInfo other) : this()
		{
			this.difficultyIdList_ = other.difficultyIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AE5C RID: 44636 RVA: 0x001D7A7A File Offset: 0x001D5C7A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicGameDifficultyInfo Clone()
		{
			return new RogueMagicGameDifficultyInfo(this);
		}

		// Token: 0x1700315F RID: 12639
		// (get) Token: 0x0600AE5D RID: 44637 RVA: 0x001D7A82 File Offset: 0x001D5C82
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> DifficultyIdList
		{
			get
			{
				return this.difficultyIdList_;
			}
		}

		// Token: 0x0600AE5E RID: 44638 RVA: 0x001D7A8A File Offset: 0x001D5C8A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicGameDifficultyInfo);
		}

		// Token: 0x0600AE5F RID: 44639 RVA: 0x001D7A98 File Offset: 0x001D5C98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicGameDifficultyInfo other)
		{
			return other != null && (other == this || (this.difficultyIdList_.Equals(other.difficultyIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AE60 RID: 44640 RVA: 0x001D7ACC File Offset: 0x001D5CCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.difficultyIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AE61 RID: 44641 RVA: 0x001D7B00 File Offset: 0x001D5D00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AE62 RID: 44642 RVA: 0x001D7B08 File Offset: 0x001D5D08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AE63 RID: 44643 RVA: 0x001D7B11 File Offset: 0x001D5D11
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.difficultyIdList_.WriteTo(ref output, RogueMagicGameDifficultyInfo._repeated_difficultyIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AE64 RID: 44644 RVA: 0x001D7B38 File Offset: 0x001D5D38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.difficultyIdList_.CalculateSize(RogueMagicGameDifficultyInfo._repeated_difficultyIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AE65 RID: 44645 RVA: 0x001D7B71 File Offset: 0x001D5D71
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicGameDifficultyInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.difficultyIdList_.Add(other.difficultyIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AE66 RID: 44646 RVA: 0x001D7B9F File Offset: 0x001D5D9F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AE67 RID: 44647 RVA: 0x001D7BA8 File Offset: 0x001D5DA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U && num != 74U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.difficultyIdList_.AddEntriesFrom(ref input, RogueMagicGameDifficultyInfo._repeated_difficultyIdList_codec);
				}
			}
		}

		// Token: 0x040046A9 RID: 18089
		private static readonly MessageParser<RogueMagicGameDifficultyInfo> _parser = new MessageParser<RogueMagicGameDifficultyInfo>(() => new RogueMagicGameDifficultyInfo());

		// Token: 0x040046AA RID: 18090
		private UnknownFieldSet _unknownFields;

		// Token: 0x040046AB RID: 18091
		public const int DifficultyIdListFieldNumber = 9;

		// Token: 0x040046AC RID: 18092
		private static readonly FieldCodec<uint> _repeated_difficultyIdList_codec = FieldCodec.ForUInt32(74U);

		// Token: 0x040046AD RID: 18093
		private readonly RepeatedField<uint> difficultyIdList_ = new RepeatedField<uint>();
	}
}
